<link rel="stylesheet" href="./fake-ui.css">
<div id="root">
  <van-nav-bar title='列表页' @backbuttonfn='clickLeft' @searchbuttonfn='clickRight'></van-nav-bar>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="./fake-ui.js"></script>
<script>
  // navbar

  const vm = new Vue({
    el: "#root",
    data: {
      title: '列表页',
    },
    methods: {
      clickLeft() {
        console.log('fetch-back');
      },
      clickRight() {
        console.log('fetch-search');
      }
    }
  })
</script>